package com.hwl.demo21.service.impl;

import com.hwl.demo21.entity.User;
import com.hwl.demo21.service.WebSite;

/**
 * 具体网站
 *
 * @author sentry
 * @since 2023-03-26
 */
public class ConcreteWebSite extends WebSite {

    private final String name;

    public ConcreteWebSite(String name) {
        this.name = name;
    }

    @Override
    public void use(User user) {
        System.out.println("网站分类：" + name + " 用户：" + user.getName());
    }
}
